/* This is framework class which takes the URL from the adapter class and connects it to server. 
 */

package com.oops.appquery;
import java.io.BufferedInputStream;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;

public class framework {

	public InputStream gsearch(String link) throws Exception
	{
		URL url = new URL(link);
			URLConnection connection = url.openConnection();
			connection.addRequestProperty("User-Agent","Mozilla");
			InputStream data = connection.getInputStream();
         	
			return new BufferedInputStream(data);
		}

}
